package cn.sumpu.app.guoguojie.biz;

import cn.sumpu.app.guoguojie.domain.*;
import cn.sumpu.app.guoguojie.util.PageModel;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface MessageBiz {

    //站内信
    public PageModel getMessageInner(String memberId, Integer page) throws AppBusinessException;

    //删除消息
    public void deleteMessageById(String id) throws AppBusinessException;

    //更新信息 (未读消息)
    public void readMessageSystem(String memberId) throws AppBusinessException;

    //更新信息 (未读消息)
    public void readMessageInner(String receiveFamily) throws AppBusinessException;

    //系统消息
    public PageModel getMessageSystem(String memberId, Integer page) throws AppBusinessException;

    //单 消息详情
    public Message getMessage(String msgId) throws AppBusinessException;

    //未读站内信数量
    public int messageInnerNoReadCount(String memberId) throws AppBusinessException;

    //通知未读消息
    public int messageSysNoReadCount(String receiveMember) throws AppBusinessException;

    // 发送站内消息
    void addClientFeedback(String allPost, String nickname, String content) throws AppBusinessException;

    //新消息
    public void insertMessage(Message message) throws AppBusinessException;

    //
    public void updateMessageAmount(String memberId, int unreads, String type) throws AppBusinessException;

    //
    public MessageAmount getMessageAmountById(String memberId, String type) throws AppBusinessException;

    //
    public void insertMessageAmount(MessageAmount messageAmount) throws AppBusinessException;

    /*public PageModel getMessageFriend(String reciveFamily, Integer page)throws AppBusinessException;

    

    

    public int getMessageNoReadCount(String family) throws AppBusinessException;

    public Message insertMessage(Member member, Message message)
    		throws AppBusinessException;

    

    public int messageFriendNoReadCount(String receiveFamily)
    		throws AppBusinessException;

    

    public int messageAllNoReadCount(String receiveFamily)
    		throws AppBusinessException;

    

    

    public void readMessageFriend(String receiveFamily)
    		throws AppBusinessException;



    public void readMessageAll(String receiveFamily)
    		throws AppBusinessException;



    public void insertSystemMessage(String family, String content)
    		throws AppBusinessException;

    public void insertMessage(Message message) throws AppBusinessException;

    public void deleteMessage(String id, String letterBox, String letterBoxType)
    		throws AppBusinessException;

    
    
    public List<MessageAmount> getMessageAmount(String family)throws AppBusinessException;
    
    public void insertMessageAmount(MessageAmount messageAmount)throws AppBusinessException;
    
    public void updateMessageAmount(String family,int unreads,String type)throws AppBusinessException;
    
    public MessageAmount getMessageAmountById(String family,String type)throws AppBusinessException;
    
    public void messageAmount(String family,String type)throws AppBusinessException;*/

}
